package com.mall.logic.controller.goods;

import java.util.List;

import javax.annotation.Resource;

import io.swagger.annotations.ApiOperation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.mall.logic.rpc.goods.GoodsRpc;
import com.mall.logic.rpc.goods.bean.GoodsVo;
import com.mall.logic.rpc.member.SysMenuRpc;
import com.mall.logic.rpc.member.UserRpc;
import com.mall.logic.rpc.member.bean.MenuVo;


@RestController
@RequestMapping("/goods")
public class GoodsController {

	
	@Autowired
	private GoodsRpc goodsRpc;
	
	@ApiOperation(value = "getGoodsList", httpMethod = "POST", notes = "getGoodsList")
	@RequestMapping(value="getGoodsList")
	@ResponseBody
	public Object getGoodsList(){
		List<GoodsVo> list = goodsRpc.getGoodsList(null);
		return list;
	}
	
	
}
